package com.ding.dailyup.model;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import static javax.persistence.GenerationType.IDENTITY;
import org.hibernate.annotations.DynamicInsert;

@Entity
@DynamicInsert
@Table(name = "strategy_category")
public class StrategyCategory implements Serializable {
	public static final long serialVersionUID = 9047982107135549422L;
	private Long categoryId;
	private String categoryName;
	private String categoryDescription;
	private Integer sortKey;
	private LocalDateTime createTime;
	private LocalDateTime updateTime;
	private Integer status;

	public StrategyCategory() {
	}

	public StrategyCategory(String categoryName, String categoryDescription,
			Integer sortKey, LocalDateTime createTime, LocalDateTime updateTime,
			Integer status) {
		this.categoryName = categoryName;
		this.categoryDescription = categoryDescription;
		this.sortKey = sortKey;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.status = status;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "categoryId")
	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "categoryName")
	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	@Column(name = "categoryDescription")
	public String getCategoryDescription() {
		return categoryDescription;
	}

	public void setCategoryDescription(String categoryDescription) {
		this.categoryDescription = categoryDescription;
	}

	@Column(name = "sortKey")
	public Integer getSortKey() {
		return sortKey;
	}

	public void setSortKey(Integer sortKey) {
		this.sortKey = sortKey;
	}

	@Column(name = "createTime")
	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	@Column(name = "updateTime")
	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}